From dabb82429d8c05cbe0a1f6745d0466ae70ba8978 Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 2 Sep 2006 21:12:34 +0000 Subject: [PATCH] configure.in: Let Apple build without libusb. cet_util: Let it build without expat. --- gpsbabel/cet_util.h | 5 ++++- gpsbabel/configure | 2 ++ gpsbabel/configure.in | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gpsbabel/cet_util.h b/gpsbabel/cet_util.h index 998c83ef0..806df203e 100644 --- a/gpsbabel/cet_util.h +++ b/gpsbabel/cet_util.h @@ -25,12 +25,15 @@ #include #include #include "config.h" -#include "cet.h" #if HAVE_LIBEXPAT # include +#else +typedef char XML_Char; #endif +#include "cet.h" + cet_cs_vec_t *cet_find_cs_by_name(const char *name); void cet_register(void); void cet_deregister(void); diff --git a/gpsbabel/configure b/gpsbabel/configure index bf075830c..7ae1fc89c 100755 --- a/gpsbabel/configure +++ b/gpsbabel/configure @@ -2910,6 +2910,8 @@ fi OSJEEPS=jeeps/gpslibusb.o CFLAGS="$OCFLAGS" # LIBS="$LIBS `libusb-config --libs`" + else + OSJEEPS=jeeps/gpsusbstub.o fi fi ;; diff --git a/gpsbabel/configure.in b/gpsbabel/configure.in index 1ead1b09d..c4c9b5a37 100644 --- a/gpsbabel/configure.in +++ b/gpsbabel/configure.in @@ -168,6 +168,8 @@ case "$target" in OSJEEPS=jeeps/gpslibusb.o CFLAGS="$OCFLAGS" # LIBS="$LIBS `libusb-config --libs`" + else + OSJEEPS=jeeps/gpsusbstub.o fi fi ;; -- 2.30.2